package com.yonyou.cyxdms.basedata.service.dto.questionaire;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 答案DTO
 *
 * @author renwd
 * @since 2019/9/19
 */
public class AnswerGroupDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "答案组ID，新增时不需要传", name = "answerGroupId")
    private String answerGroupId;

    @ApiModelProperty(value = "答案名称", name = "answerGroupName")
    @NotBlank(message = "答案名称不能为空")
    private String answerGroupName;

    @ApiModelProperty(value = "答案说明", name = "answerGroupDescript")
    private String answerGroupDescript;

    @ApiModelProperty(value = "是否启用(1004)", name = "isValid")
    @NotNull(message = "是否启用不能为空")
    private Integer isValid;

    @ApiModelProperty(value = "数据来源(1045)", name = "dataSources")
    @NotNull(message = "数据来源不能为空")
    private Integer dataSources;

    @ApiModelProperty(value = "版本号，新增时不需要传", name = "recordVersion")
    private Integer recordVersion;

    @ApiModelProperty(value = "答案选项信息", name = "answerGroupList")
    private List<AnswerDTO> answerGroupList;

    public String getAnswerGroupId() {
        return answerGroupId;
    }

    public void setAnswerGroupId(String answerGroupId) {
        this.answerGroupId = answerGroupId;
    }

    public String getAnswerGroupName() {
        return answerGroupName;
    }

    public void setAnswerGroupName(String answerGroupName) {
        this.answerGroupName = answerGroupName;
    }

    public String getAnswerGroupDescript() {
        return answerGroupDescript;
    }

    public void setAnswerGroupDescript(String answerGroupDescript) {
        this.answerGroupDescript = answerGroupDescript;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public Integer getRecordVersion() {
        return recordVersion;
    }

    public void setRecordVersion(Integer recordVersion) {
        this.recordVersion = recordVersion;
    }

    public List<AnswerDTO> getAnswerGroupList() {
        return answerGroupList;
    }

    public void setAnswerGroupList(List<AnswerDTO> answerGroupList) {
        this.answerGroupList = answerGroupList;
    }

    @Override
    public String toString() {
        return "AnswerGroupDTO{" +
                "answerGroupId='" + answerGroupId + '\'' +
                ", answerGroupName='" + answerGroupName + '\'' +
                ", answerGroupDescript='" + answerGroupDescript + '\'' +
                ", isValid=" + isValid +
                ", dataSources=" + dataSources +
                ", recordVersion=" + recordVersion +
                ", answerGroupList=" + answerGroupList +
                '}';
    }
}
